package com.cq.hd.product.mapper;

import com.cq.hd.product.api.dto.ActiveDiscountSonDto;
import com.cq.hd.product.api.vo.ActiveDiscountVo;
import com.cq.hd.product.po.TbActiveDiscountPo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 活动折扣关联表 Mapper 接口
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-23
 */
@Mapper
public interface TbActiveDiscountMapper extends BaseMapper<TbActiveDiscountPo> {

    List<ActiveDiscountSonDto> listByActiveIds(@Param("activeIds") List<Long> activeIds);

    List<ActiveDiscountVo> listVoByActiveId(@Param("activeId") Long activeId);
}
